package com.bestcem.xm.user.controller.vo.user.request;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 * 账号-绑定手机号-发送验证码入参
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/1 17:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class VerificationCodeVO {

    /**
     * 手机号
     */
    @Pattern(regexp = RegTypes.MOBILE, message = "手机号格式不正确")
    private String mobile;

    /**
     * redis缓存key的前缀
     * 免费版注册：prefix: "USER:free_register"
     * 找回密码：prefix: "USER:find_pwd"
     * 手机号码绑定：prefix: "USER:mobile_bind"
     * 快速登录：prefix: "USER:fast_login"
     * 预约演示: prefix: "USER:Booking"
     * biz预约: prefix:  "USER:biz"
     * 白皮书下载: "USER:whitepaper_subscribe"
     * <p>
     * //用于向系统商后台同步消息
     * notify_map = {
     * "USER:free_register": "注册",
     * "USER:find_pwd": "找回密码",
     * "USER:mobile_bind": "重置手机号",
     * "USER:fast_login": "快速登录",
     * "USER:Booking": "预约演示",
     * "USER:biz": "biz预约",
     * "USER:whitepaper_subscribe": "白皮书下载",
     * }
     */
    private String prefix;

    /**
     * 螺丝帽验证结果
     */
    @JsonProperty("luotest_response")
    private String luoTestResponse;
}
